/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tk.eigh.ksvg.types;

import java.awt.Component;
import java.awt.Graphics;
import java.awt.Rectangle;
import java.beans.PropertyChangeListener;
import java.beans.PropertyEditor;

/**
 *
 * @author nt
 */
public class SVGNumberEditor  implements PropertyEditor{
    
    private SVGNumber _number;

    public void setValue(Object value) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public Object getValue() {
        return this._number;
    }

    public boolean isPaintable() {
        return true;
    }

    public void paintValue(Graphics gfx, Rectangle box) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public String getJavaInitializationString() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public String getAsText() {
        return this._number.toString();
    }

    public void setAsText(String text) throws IllegalArgumentException {
        this._number = new SVGNumber(text);
    }

    public String[] getTags() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public Component getCustomEditor() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public boolean supportsCustomEditor() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public void addPropertyChangeListener(PropertyChangeListener listener) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public void removePropertyChangeListener(PropertyChangeListener listener) {
        throw new UnsupportedOperationException("Not supported yet.");
    }
    
}
